package org.lease.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.lease.model.dto.LeaseAgreementDTO;
import org.lease.model.entity.LeaseAgreement;
import org.lease.model.query.LeaseAgreementPageQuery;
import org.lease.model.vo.AgreementItemVo;

import java.util.List;

@Mapper
public interface LeaseAgreementMapper extends BaseMapper<LeaseAgreement> {
    IPage<LeaseAgreementDTO> pageQueryLeaseAgreementDTO(IPage<LeaseAgreementDTO> page, LeaseAgreementPageQuery query);


    List<AgreementItemVo> listItem(String username);
}
